<?php echo $header; ?>
<!--#content-->
	<div id="content" class="clearfix">
		<div class="wrapper">			 
		<?php echo $column_right; ?>
		
	<div id="primary" class="hfeed">
	
   <div id="left-indent">
      
	 <div id="border-style">
				
		<div class="box">
				 	
			<div class="published"><h2 class="entry-title"><a href="<?php echo $_SERVER["REQUEST_URI"].'#right-indent';?>"  style="color:white;"><?php echo $heading_title; ?></a></h2></div>
			<br><br>
			<?php if ($categories) { ?>
				<div class="child_cate">
					<ul>
					<?php for ($i = 0; $i < sizeof($categories); $i = $i + 3) { ?>
						<li>
						 <?php for ($j = $i; $j < ($i + 3); $j++) { ?>
						 	<?php if (isset($categories[$j])) { ?>
							<div class="cate_name"><a class="txt" href="<?php echo $categories[$j]['href']; ?>#right-indent"><?php echo $categories[$j]['name']; ?></a></div>
							<?php } ?>
						 <?php } ?>
						</li>
						<div style="clear:both;"></div>
					<?php } ?>	
					</ul>
				</div>
			 <?php } ?>
			 
			 <?php if ($products) { ?>
			 	<div class="newest">
			      <?php for ($i = 0; $i < sizeof($products); $i++) { ?>
			        <?php if (isset($products[$i])) { ?>
			          <div align="center" >
			          	<a data-tooltip="sticky<?php echo $i;?>" class ="wid" href="<?php echo $products[$i]['href']; ?>#right-indent">
			          		<img src="<?php echo $products[$i]['thumb']; ?>" width="175" height="175" title="<?php echo $products[$i]['name']; ?>" alt="<?php echo $products[$i]['name']; ?>"  />
			          	</a>
			          </div>
			         <?php } ?>
			      <?php } ?>
			   </div>
			   
			   <div id="mystickytooltip" class="stickytooltip">
			    <?php for ($i = 0; $i < sizeof($products); $i++) { ?>
			    	<?php if (isset($products[$i])) { ?>
					<div id="sticky<?php echo $i;?>" class="atip" >
						<img src="<?php echo $products[$i]['image']; ?>" height="250" width="250"/><br /><br />
						<div style="text-align: center;"><?php echo $products[$i]['name']; ?></div><br />
					</div>
					<?php } ?>
				<?php } ?>
				</div>		
				
			   <br>
			   <div class="page"><?php echo $pagination; ?></div>
		    <?php } else {?>
		    <div class="newest" style="height: 20px;">
		    	Không có sản phẩm nào trong danh mục <?php echo $heading_title; ?>!
		    </div>
		    <?php }?>
		</div><!-- #post-## -->
		<h1 style="font-weight: 900;"><?php echo $h1Tag;?></h1>

		</div>
<div class="right-bot-corner">
<div class="left-bot-corner"></div>
</div>
	 
   </div>
</div>
<!--END #primary .hfeed-->
					
	</div>
</div><!-- END #content -->			

<?php echo $footer; ?> 